package gui;

import java.awt.BorderLayout;
import java.awt.FlowLayout;

import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.UIManager;
import java.awt.Font;
import javax.swing.JPasswordField;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

public class VInicioSesion extends JDialog {
	private JTextField tfUser;
	private JPasswordField pfPassword;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		try {
			UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
		} catch (Throwable e) {
			e.printStackTrace();
		}
		try {
			VInicioSesion dialog = new VInicioSesion();
			dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
			dialog.setVisible(true);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	/**
	 * Create the dialog.
	 */
	public VInicioSesion() {
		setBounds(100, 100, 356, 211);
		getContentPane().setLayout(null);
		{
			JPanel buttonPane = new JPanel();
			buttonPane.setBounds(90, 114, 161, 33);
			buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
			getContentPane().add(buttonPane);
			{
				JButton okButton = new JButton("Acceder");
				okButton.setActionCommand("OK");
				buttonPane.add(okButton);
				getRootPane().setDefaultButton(okButton);
			}
			{
				JButton cancelButton = new JButton("Cancelar");
				cancelButton.addActionListener(new ActionListener() {
					public void actionPerformed(ActionEvent arg0) {
						dispose();
					}
				});
				cancelButton.setActionCommand("Cancel");
				buttonPane.add(cancelButton);
			}
		}
		{
			JLabel lblUsuario = new JLabel("Usuario");
			lblUsuario.setBounds(100, 61, 36, 14);
			getContentPane().add(lblUsuario);
		}
		{
			tfUser = new JTextField();
			tfUser.setBounds(165, 58, 86, 20);
			getContentPane().add(tfUser);
			tfUser.setColumns(10);
		}
		{
			JLabel lblContrasea = new JLabel("Contrase\u00F1a");
			lblContrasea.setBounds(80, 86, 56, 14);
			getContentPane().add(lblContrasea);
		}
		{
			pfPassword = new JPasswordField();
			pfPassword.setBounds(165, 83, 86, 20);
			getContentPane().add(pfPassword);
			pfPassword.setColumns(10);
		}
		{
			JLabel lblInicioDeSesin = new JLabel("INICIO DE SESI\u00D3N");
			lblInicioDeSesin.setFont(new Font("Tahoma", Font.PLAIN, 18));
			lblInicioDeSesin.setBounds(98, 11, 153, 20);
			getContentPane().add(lblInicioDeSesin);
		}
	}

}
